-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linter: Warn about using non-fallible APIs for Lazy
and Mapping
#2045
Conversation
…size Improve the heuristcs to check if nested types in ADTs, tuples and arrays have statically encoded types, and therefore should not be reported. This removes false positives on the default ink types like `AccountId` (alias to `[u8; 32]`).
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2045 +/- ##
==========================================
+ Coverage 53.48% 53.49% +0.01%
==========================================
Files 221 221
Lines 6982 6982
Branches 3082 3082
==========================================
+ Hits 3734 3735 +1
+ Misses 3248 3247 -1 ☔ View full report in Codecov by Sentry. |
🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑These are the results when building the
Link to the run | Last update: Wed Jan 10 16:55:27 CET 2024 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this goes into the right direction.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
Closes #2017
cargo-contract
orpallet-contracts
?Add a new lint for
ink_linting_extra
.Description
This PR adds a new lint for
ink_linting_extra
. It warns about usage of the non-fallible API forMapping
andLazy
which potentially can lead to overflow of the static buffer.Checklist before requesting a review
CHANGELOG.md